<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<SCRIPT type="text/javascript" src="../js/jquery-1.8.2.js"></SCRIPT>
<SCRIPT type="text/javascript">
	$(Document).ready(function() {
	});
</SCRIPT>
<link href="../css/shop.style.css" rel="stylesheet" />
</head>
<body>
	<c:forEach var="p" items="${product}" begin="0" end="${count}" varStatus="s">
		<TABLE>
			<tr>
				<td colspan="2"><a href="detail.htm?prodCode=${p.prodCode}"> <img src="../images/${p.prodImage}" width="170px" height="170px">
				</a></td>
			</tr>
			<tr>
				<th colspan="2"><a href="detail.htm?prodCode=${p.prodCode}">${p.prodName}</a></th>
			</tr>
			<tr>
				<th>가격</th>
				<td><fmt:formatNumber value="${p.prodOutPrice}" pattern="###,###,###" />원</td>
			<tr>
				<th>적립금</th>
				<td><fmt:formatNumber value="${p.prodOutPrice*0.01}" pattern="###,###,###" />원</td>
			</tr>
			<tr>
				<th>재고</th>
				<td>${p.prodStock}</td>
			</tr>
		</TABLE>
		<c:if test="${s[index]%5==0}">
			<br>
		</c:if>
	</c:forEach>
</body>
</html>